import request from "@/utils/request";
// 获取地址列表
export function getAddressList() {
    return request.get("/p/address/list");
}
// 设置默认地址
export function changeDefaultAddr(addrId) {
    return request.put("/p/address/defaultAddr/" + addrId, { addrId });
}
// 设置地区列表
export function getlistByPid(pid) {
    return request.get("/p/area/listByPid", { pid });
}
// 新增收货地址
export function addAddr(payload) {
    return request.post("/p/address/addAddr", payload);
}
// 获取编辑对应的收货地址
export function addrInfo(payload) {
    return request.get("/p/address/addrInfo/" + payload);
}
// 修改对应的收货地址
export function updateAddr(payload) {
    return request.put("/p/address/updateAddr", payload);
}
// 删除对应的收货地址
export function deleteAddr(payload) {
    return request.delete("/p/address/deleteAddr/" + payload);
}
